import React, { PureComponent } from 'react';
import moment from 'moment';
import { Button, Form, Input, Modal,  Divider,Card,Switch,Badge,message  } from 'antd';
import {Map, Marker, NavigationControl,MapTypeControl,ScaleControl,OverviewMapControl, InfoWindow,TrafficLayer,Road} from 'react-bmap'  ;
import DescriptionList from '../../DescriptionList/index';
import MsgImage from '../MsgImage'
import styles from './index.less';
const FormItem = Form.Item;
const { TextArea } = Input;
const { Description } = DescriptionList;
//消息来源
const sourceMap = ['来自微信', '来自APP','平台发布'];
//是否审核
const auditMap = ["待审","已审待播","已审已播","导播忽略","主播忽略"];
//消息类型
const messageTypeMap = ['互动','寻人','寻物','车辆求助','寻找失主','其他'];

class MsgWeiXinDetail extends PureComponent {
  state = {
  };
  render() {
    const {selectedRowData} = this.props;
    return (
      <div style={{height: "auto"}}>
        <Card bordered={false}>
          <DescriptionList style={{marginBottom: 16}} col={2}>
            <Description term="时间">{moment(selectedRowData.msgTime).format('YYYY-MM-DD HH:mm:ss')}</Description>
            <Description term="审核">{auditMap[selectedRowData.status]}</Description>
            <Description term="类型">{messageTypeMap[selectedRowData.msgType]}</Description>
            <Description term="来源">{sourceMap[selectedRowData.messageFrom]}</Description>
          </DescriptionList>
        </Card>
      </div>
    );
  }
}
export default MsgWeiXinDetail ;
